package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Reservation {
    private int r_id;

    private String username;
    private String type;
    private String number;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date date;
    private int time;

    public int getR_id() {
        return r_id;
    }

    public String getUsername() {
        return username;
    }

    public String getType() {
        return type;
    }

    public String getNumber() {
        return number;
    }

    public Date getDate() {
        return date;
    }

    public int getTime() {
        return time;
    }

    public void setR_id(int r_id) {
        this.r_id = r_id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setTime(int time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Reservation{" +
                "r_id=" + r_id +
                ", username='" + username + '\'' +
                ", type='" + type + '\'' +
                ", number='" + number + '\'' +
                ", date=" + date +
                ", time=" + time +
                '}';
    }
}
